<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link href="../../../eui/plugins/layui/css/layui.css" rel="stylesheet" media="all" />
    <link href="../../../eui/css/components.min.css" rel="stylesheet" media="all" />
    <link href="../../../eui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all" />
</head>

<body>
<script src="../../../eui/plugins/layui/layui.js"></script>
<script src="../../../eui/plugins/jquery.min.js"></script>
<script src="../../../eui/js/base.js"></script>
<script src="modifyRule.js"></script>
<form id="editForm" class="layui-form" lay-filter="editForm" style="padding-top: 40px;text-align: center">
    <input type="hidden"  name="id" value="">
    <div class="layui-inline" style="width:100%;">
        <div style="width:50%;float:left" id="collectInfo">
            <div class="layui-form-item">
                <label class="layui-form-label">规则编号：</label>
                <div class="layui-input-block">
                    <input id="ruleNo" type="text" name="ruleNo" lay-verify="required" autocomplete="off" placeholder="请输入规则编号"  class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">规则名称：</label>
                <div class="layui-input-block">
                    <input id="ruleName" type="text" lay-verify="required" placeholder="请输入规则名称" name="ruleName"  autocomplete="off"  class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">版本号：</label>
                <div class="layui-input-block">
                    <input id="version" type="text" lay-verify="required" name="version"  autocomplete="off"  class="layui-input" readonly>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">所属维度：</label>
                <div class="layui-input-block">
                    <select id="dimension" type="text" lay-verify="required" name="dimension"  autocomplete="off"  class="layui-input">
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">决策序号：</label>
                <div class="layui-input-block">
                    <input id="exeOrder" type="text" lay-verify="required|number" placeholder="请输入决策序号" name="exeOrder"  autocomplete="off"  class="layui-input">
                    <label style="margin-right: 480px;">（数值越小优先级越高）</label>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">最高分值：</label>
                <div class="layui-input-block">
                    <input id="maxScore" type="text" lay-verify="required|double" placeholder="请输入最高分值" name="maxScore"  autocomplete="off"  class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">表达式：</label>
                <div class="layui-input-block">
                    <textarea  id="expression" lay-verify="required" name="expression" autocomplete="off"  class="layui-input" style="width: 640px; height: 200px"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注：</label>
                <div class="layui-input-block">
                    <textarea id="remark" type="text"  name="remark" class="layui-input" style="width: 640px; height: 50px"></textarea>
                </div>
            </div>
        </div>
        <div style="width:50%;float:right">
            <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;font-size:18px;font-weight:bold">字段维护</label>
                <div id="buttondiv" class="layui-input-item">
                    <button type="button" class="layui-btn" id="add"><i class="fa fa-plus-circle"></i>添加</button>
                    <button type="button" class="layui-btn layui-btn-normal" id="delete"><i class="fa fa-remove"></i> 删除</button>
                </div>
            </div>
            <div class="layui-form-item" style="height: 550px;overflow-y:auto">
                <table id="fieldtb" class="layui-table" style="width: 700px;margin-left: 20px">
                    <thead>
                    <tr>
                        <th width="5%"></th>
                        <th>ID</th>
                        <th>内部中文名</th>
                        <th>内部英文名</th>
                        <th>字段类型</th>
                        <th>字段描述</th>
                    </tr>                    </thead>
                    <tbody></tbody>
                </table>
            </div>
        </div>
        <div class="layui-form-item">
            <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="checkExp">校验表达式</button>
            <button id="btnSave" type="button" class="layui-btn" lay-submit="" lay-filter="save">保存</button>
            <button type="button" class="layui-btn layui-btn-primary" onclick="closePage()">取消</button>
        </div>
    </div>
</form>
</body>
</html>